
using System;
using System.Collections.Generic;

namespace finlasku
{
	
	
	public class Invoice
	{
		private long _lngId = 0;
		private long _lngInvoiceNumber = 0;
		private string _strTitle = null;
		private Customer _customer = null;
		private IList<InvoiceRow> _rows = null;
		private string _strReference = null;
		private DateTime _dtaDate = DateTime.Now;
		private string _strPaymentCondition = null;
		
		public Invoice()
		{
			_rows = new List<InvoiceRow>();
		}
		
		public long Id
		{
			get { return _lngId; }
			set { _lngId = value; }
		}
		
		public long InvoiceNumber
		{
			get { return _lngInvoiceNumber; }
			set { _lngInvoiceNumber = value; }
		}
		
		public string Title
		{
			get { return _strTitle; }
			set { _strTitle = value; }
		}
		
		public Customer Customer
		{
			get { return _customer; }
			set { _customer = value; }
		}
		
		public IList<InvoiceRow> Rows
		{
			get { return _rows; }
			set { _rows = value; }
		}
		
		public string Reference
		{
			get { return _strReference; }
			set { _strReference = value; }
		}
		
		public DateTime Date
		{
			get { return _dtaDate; }
			set { _dtaDate = value; }
		}
		
		public string PaymentCondition
		{
			get { return _strPaymentCondition; }
			set { _strPaymentCondition = value; }
		}
	}
}
